package repositoryXML;

import repository.IRepositories;
import repository.IRepositoriesFactory;
import repository.ITaskRepository;

public class RepositoriesXML implements IRepositories {

	private String repositoryLocation;
	private IRepositoriesFactory repositoriesFactory;
	private ITaskRepository taskRepository;

	public RepositoriesXML(){
		repositoriesFactory = new RepositoriesFactory();
		repositoryLocation = "c:\\tempTasks";
		taskRepository = new TaskRepositoryXML();
	}

	/* (non-Javadoc)
	 * @see repository.IRepositories#getRepositoryLocation()
	 */
	public String getRepositoryLocation() {
		return repositoryLocation;
	}
	
	/* (non-Javadoc)
	 * @see repository.IRepositories#getTaskRepository()
	 */
	public ITaskRepository getTaskRepository() {
		return taskRepository;
	}

	public IRepositoriesFactory getRepositoriesFactory() {
		return repositoriesFactory;
	}
}
